package com.chen.model;

import com.chen.domain.SysMenu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: chen
 * @Date: 2021/4/19 10:29 AM
 * @Version 1.0
 */
@Data
@ApiModel("用户登录成功返回对象")
public class UserLoginModel implements Serializable {

    @ApiModelProperty("登录成功的token")
    private String token;

    @ApiModelProperty("登录成功返回的菜单")
    private List<SysMenu> menus;

    @ApiModelProperty("登录成功返回的权限")
    private List<SimpleGrantedAuthority> authorities;

}
